package com.zy.mapper;

import com.zy.entity.UserLog;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-30 周三 15:12
 * @since 17
 */
@Service
public interface UserLogMapper {

    int insert(Map<String, String> map);

    @Select("select id,account,info,create_time ct,create_ip cip from t_userlog order by id desc")
    List<UserLog> queryAll();

    @Select("select id,account,info,create_time ct,create_ip cip from t_userlog where account = #{account} order by id desc")
    List<UserLog> query(String account);
}
